<div class="modal-header">
    <h4 class="modal-title">字典管理{{item.dictionary_id=='' && '-新增' || '-修改'}}</h4>
</div>
<div class="modal-body">
    <form  class="form-horizontal form-content" name="edit_Form">
        <div class="form-group">
            <label class="control-label col-xs-2" for="dictionary_code">字典编码</label>
            <div class="col-xs-10">
                <input type="text" class="form-control" required ng-model="item.dictionary_code"
                       name="dictionary_code" id="dictionary_code" placeholder="字典编码">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-2" for="dictionary_name">字典名称</label>
            <div class="col-xs-10">
                <input type="text" class="form-control" required ng-model="item.dictionary_name"
                       name="dictionary_name" id="dictionary_name" placeholder="字典名称">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-2" for="dictionary_value">字典值</label>
            <div class="col-xs-10">
                <input type="text" class="form-control" ng-model="item.dictionary_value"
                       name="dictionary_value" id="dictionary_value" placeholder="字典值">
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-2" for="dictionary_type">字典类型</label>
            <div class="col-xs-10">
                <select name="dictionary_type" id="dictionary_type" required
                        ng-options="dictionary.dictionary_code as dictionary.dictionary_name for dictionary in dictionaryTypes"
                        required ng-model="item.dictionary_type"></select>
            </div>
        </div>
        <div class="form-group">
            <label class="control-label col-xs-2" for="dictionary_desc">字典描述</label>
            <div class="col-xs-10">
                <input type="text" class="form-control" ng-model="item.dictionary_desc"
                       name="dictionary_desc" id="dictionary_desc" placeholder="字典描述">
            </div>
        </div>
    </form>
</div>
<div class="modal-footer">
    <button class="btn btn-primary" type="button"
            ng-disabled="
            edit_Form.dictionary_code.$invalid ||
            edit_Form.dictionary_name.$invalid ||
            edit_Form.dictionary_type.$invalid
            "
            ng-click="ok()">确认</button>
    <button class="btn btn-warning" type="button" ng-click="cancel()">关闭</button>
</div>